package cn.wolfcode.edu.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter@Getter@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Test extends BaseDomain{

    public static final byte NO_TEST = 0;         //待测试
    public static final byte SUCCESS_TEST = 1;   //测试通过
    public static final byte FAILING_TEST = 2;   //未通过

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss ", timezone = "GMT+8")
    private Date testDate;          //考试时间
    private Byte testResult = NO_TEST;        //考试结果  默认为 待测试
    private Employee handler;         //审核人
    private Client client;          //考生

}